package hc.uco

import java.util.Date;

class Evolucao {

	Paciente paciente
	
	Integer diaNumero
	Date diaData
	
	static hasMany = [medicacao: Medicacao]
	
	Boolean avch
	
	Boolean transfusao
	String ch
	Boolean sangramento
	String sangraDelta
	Integer deltaHb
	
	Float glicemia
	Float hbGli
	Float hb
	Float ht
	Float ureia
	Float creatinina
	Float sodio
	Float potassio
	Float clcr
	Float r
	Float rni
	Float colesterolT
	Float hdl
	Float ldl
	Float triglicerides
	Float vldl
	Float pcr01
	Float pcr05
	Float troponinaI01
	Float troponinaI02
	
	String comentarios
	
	Usuario createdBy
	Usuario updatedBy
	Date dateCreated
	Date lastUpdated
	
	static belongsTo = Paciente
	
    static constraints = {
		//principioAtivo(maxLength:50,blank:false)
		//dose(min:0f,blank:false)
		//tipo(blank:false, inList:['dom','24h','alta'])
		comentarios blank: true, maxSize: 800
    }
	
	/*@Override
	public String toString() {
		return principioAtivo + " " + dose + "mg/dia" ;
	}*/
	
}
